/*
 * @Author: your name
 * @Date: 2021-08-02 01:30:11
 * @LastEditTime: 2021-08-02 15:40:19
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \aircityinit\src\tools\Event.js
 */
// 三维中鼠标监听事件
const OnEvent = async (e) => {
    console.log(e);

    // 转当前点击的点为屏幕坐标
    // console.log(e.MouseClickPoint);
    // const posi = e.MouseClickPoint
    // // console.log(posi);
    // let res = await __g.coord.world2Screen(posi[0],posi[1],posi[2],);
    // // console.log(res);
    // // log('World2Screen Result: ' + res.screenPosition);
    // console.log(res.screenPosition[0],res.screenPosition[1]);

    // 判断是否为左键点击的交互
    if (e.eventtype === "LeftMouseButtonClick") {
        // console.log(e, 'e');

    }

    if (e.eventtype === "CameraTourFinished") {
        console.log("导览播放结束");
    }
};
export default OnEvent;
